package controller.trafficlights;

import java.util.Comparator;

public class LightPriorityComparer implements Comparator<TrafficLight>
{
	@Override
	public int compare(TrafficLight light1, TrafficLight light2) 
	{
		if(light1._priority < light2._priority)
		{
			return 1;
		}
		if(light1._priority > light2._priority)
		{
			return -1;
		}
		return 0;
	}
}
